home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / lib / BasicIO.sig < prev    next >
Encoding:
Text File  |  1997-08-18  |  913 b   |  28 lines  |  [TEXT/Moml]

  1. (* BasicIO -- non-standard, will be replaced by BinIO and TextIO *)
  2.  
  3. type instream and outstream;
  4.  
  5. val std_in        : instream;
  6. val open_in       : string -> instream;
  7. val open_in_bin   : string -> instream;
  8. val input         : instream * int -> string;
  9. val inputc        : instream -> int -> string;
  10. val lookahead     : instream -> string;
  11. val close_in      : instream -> unit;
  12. val end_of_stream : instream -> bool;
  13.  
  14. val std_out       : outstream;
  15. val std_err       : outstream;
  16. val open_out      : string -> outstream;
  17. val open_out_bin  : string -> outstream;
  18. val output        : outstream * string -> unit;
  19. val outputc       : outstream -> string -> unit;
  20. val close_out     : outstream -> unit;
  21. val flush_out     : outstream -> unit;
  22. val input_line    : instream -> string;
  23. val can_input     : instream * int -> bool;
  24. val open_append   : string -> outstream;
  25.  
  26. val exit  : int -> 'a
  27. val print : string -> unit
  28.